package com.tutor.lzm.utils;

/**
 * Created by zzgpc on 2017-9-10.
 * 项目字段对应表
 */
public class ProjectStringUtils {


    /**
     * 根据status获取对应的老师任职状态
     *
     * @param status
     * @return
     */
    public static String getTeacherStatus(int status) {

        if (status == 0) {
            return "在职";
        } else if (status == 1) {
            return "在校";
        }

        return "在职";
    }


    /**
     * 根据status获取对应的老师任职状态
     *
     * @param status
     * @return
     */
    public static String getTeacherType(int status) {

        if (status == 1) {
            return "家长";
        } else if (status == 2) {
            return "在职老师";
        } else if (status == 3) {
            return "平台老师";
        } else if (status == 4) {
            return "在校大学生";
        }

        return "在职老师";
    }

    /**
     * 根据教学类型id获取相应的教学类型
     *
     * @param id
     * @return
     */
    public static String getGradeForID(int id) {
        if (id == 1) {
            return "小学";
        } else if (id == 2) {
            return "初中";
        } else if (id == 3) {
            return "高中";
        } else if (id == 4) {
            return "才艺";
        }
        return "小学";
    }


    /**
     * 根据id获取学历
     *
     * @param id
     * @return
     */
    public static String getEduForID(int id) {
        if (id == 1) {
            return "高中";
        } else if (id == 2) {
            return "专科";
        } else if (id == 3) {
            return "本科";
        } else if (id == 4) {
            return "研究生";
        } else if (id == 5) {
            return "博士";
        }
        return "本科";
    }

    /**
     * 根据id获取性别
     *
     * @param sexId
     * @return
     */
    public static String getSex(int sexId) {
        if (sexId == 1) {
            return "男";
        } else if (sexId == 2) {
            return "女";
        }
        return "未知";
    }
}
